public class Tester {

public static void main(String[] args) {
/*
int[] randGen = MatrixCal.GenerateRandArray(10);
MatrixCal.printIntArray(randGen);

int[][] genmat = MatrixCal.GenerMultiArray(2,3);
MatrixCal.printMatrix(genmat);

*/
int[][] M1 = { {1,2} , {2,3} };
int[][] M2 = { {1,3} , {2,3} };
//int[][] res = MatrixCal.addMat(M1,M2);
//MatrixCal.printMatrix(res);

//int[][] Mulres = MatrixCal.mulMat(M1,M2);
//MatrixCal.printMatrix(Mulres);

long sum = MatrixCal.sumMatrix(M2);
System.out.println("Sum of Matrix is " + sum);

int sum1[] = MatrixCal.sumRow(M1);
for(int i=0;i<sum1.length;i++)
System.out.println(sum1[i]);

int Sum2[] = MatrixCal.sumCol(M2);
for(int i=0;i<Sum2.length;i++)
System.out.println(Sum2[i]);




}

}